Basic version of BST