Remove calls to tree_gc from main
Fix a potential bug in the way tree sizes are calculated
Reduce size of struct tree by storing pointer to range_t