Added methods to measure memory block usage.
Added num_trees accessor and tests.