Function to iterate over the X quadrant and swap its element with Y quadrant
static void swap ( int N , int M , int [ , ] mat , int startx_X , int starty_X , int startx_Y , int starty_Y ) { int row = 0 ; int col = 0 ;