Merge alternate nodes of a linked list