median two arrays