rearrange odd/even nodes in linked list