Find the maximum diff in 2D array