Simplify the merging of two sorted list a bit.