Function to find median of given two sorted arrays
int findMedianSortedArrays ( int * a , int n , int * b , int m ) { int min_index = 0 , max_index = n , i , j ; while ( min_index <= max_index ) { i = ( min_index + max_index ) / 2 ; j = ( ( n + m + 1 ) / 2 ) - i ;