Implement hashing and retrieval