Finished the  implementation of binary tree