Java Implementation of the Binary Tree