adding BST code and few methods