Simple PHP classes for creating and managing hierarchical buffers