passer merge two sorted lists and mergesortedarray