sketch of pyramid data-structure