implemented prototype of vertex hashing