merge sorted lists recursively