Adds remove() and computes index from hash.
Add test classes.