https://www.geeksforgeeks.org/convert-bst-min-heap/