https://llego.dev/posts/find-the-kth-smallest-element-bst-mastering-tree-algorithms-python/