binary search tree implemented and working