add remove element and merge two sorted list