[NEW] Pseudo-code for list union and merge