implemented Tree methods for allocation
found bug with bbtree; finished tree tests