Implemented LSH-inspired Hash Fn

Locale Sensitive Hashing-like hash function and also implemented a unit
test.