added find Kth to last element method