sparsehash (for stacks)