find k path