Implmented ensure_hash_index with a basic unit test

Implement other indexes as well as the API to create and destroy them