Binary Search Tree, With Heap and Sorts