Median-of-two-sored-array