added middle-finding method for linked list