Initial solution to merging two sorted lists.