Returns the k-th smallest value in a data set