Cleaned up code so that memory ownership is clearer, via unique_ptr.

Also removed the Single Slab Hierarchy class, as I doubt it will actually
get used.