Created some of BST logic (factory, search strategy)