Binary search tree check

Simple PreOrder Traversal, and compare implementation in Java.