sample code for xor-ed linked lists