https://ideas.creativecasinoties.com/post/kth-smallest-element-ca07-mkxqwh