import median-of-two-sorted-arrays [wa]
fix the calculation of length_of_the_first_half_of a and b