Rearranging the project.
Fixed the logic of the find k-th smallest element.