Correct hash and equality of a sparse_stack.
Implement the pop operation on a sparse_stack.

It returns a copy of the sparse_stack.