median two sorted arrays bug fix