MERGE-TWO-SORTED-LISTS problem