Adding merge_lists function