find the kth element in linked list