Add solution to median-of-two-sorted-arrays in java