add new solution of median of two sorted arrays  problem in leetcode and refactor code