Create ahash class, which subclasses from ahash.

This function adds extra "attribute" vectors to hash, which
facilitates in efficient parallel data retrieval with hash.