Find Kth distance from a node