Through together the beginnings of bintree

Fixed up template params and class structure - need to go back and
clean up/finish linked list