added memory allocator, commented out destructor in tree, made trees use
memory allocator