Update list.h

working merge method