rewrite leetcode merge two sorted lists