making and implementing binary trees