leetcode median of two sorted arrays - 3 different approaches