Given 2 dimensional sorted array(Both row and column wise sorted) write a efficient code to find median.Some one please explain the algorithm.