solve the merge two sorted lists problem.