Binary tree implemented with tests