Function to calculate the perfix sum of the rows and the columns of the given matrix
void perfix_calculate ( vector < vector < int > > & A , vector < vector < int > > & row , vector < vector < int > > & col ) {