Implement put and get for hashtables.