Update BinarySearchTree.java

updated isRoot method