implementation of BSTree.cpp functions started