find the kth closet distance to the (0,0)