Return the sub array index when finding the max sub array in 2
dimensional matrix