public void Write(Block <T> block, int index) { --_blocksWithDepths[_storage.ReadDepth(index)]; _storage.Write(block, index); ++_blocksWithDepths[block.Depth]; }