Added more functionallity to the binary tree.