Implement

This PR implements most hashtable functions.

Please review.