find middle element of linked list