add double hashing algorithm