Added unbalanced BST support, very crude.