Binary tree implemented with pointers