Adding two utility methods to Binary Tree Java interface