https://ideas.creativecasinoties.com/post/kth-smallest-element-in-an-array-python-q9ps3e