Update BinaryTree.java

Updated to store elements in an array when transverse in the different methods to be more general is accordence with wishes expressed by professor.