Binary tree works!

Now, I finally got the tree to work.. Somehow I got a bunch of undefined
references to the methods of the BinaryTree class, so I moved everything
to the header file. Also, I modified some of the logic behind the methods.
Templatization works