Refactored by moving the get and traverse methods to the binary tree itself