Program to merge two lists