Function to perform the queries
static void queries_fxn ( int [ , ] matrix , int [ , ] queries ) { for ( int i = 0 ; i < queries . GetLength ( 0 ) ; i ++ ) manipulation ( matrix , GetRow ( queries , i ) ) ; }