improve median of two sorted arrays [leet]