Median of 2 sorted arrays in log n