Iterative Function to calculate ( nCr ) % p and save in f [ n ] [ r ]
static void nCr ( int n , int p , int f [ ] [ ] , int m ) { for ( int i = 0 ; i <= n ; i ++ ) { for ( int j = 0 ; j <= m ; j ++ ) {