Added base BST code