returns the middle node of a linked list