array: find kth smallest in unsorted array