Median of Two Sorted Arrays(Python version)