Update BinarySearchTree.java

isInternal(), isExternal(), parent() method implementation