Added code to split linked list into two based on alternating nodes.