bulk of BinaryTree helper functions, need to fix template issue
fixed template issues, need to implement remaining methods and improve main routine