Wrote a List.merge extension function