added function to find the kth to last element of a singly linked list