extra: to find middle of a singly linked list