find kth element

k = k / 2