Kth smallest absolute difference in array