Adapted to latest changes to the paper and optimized memory usage
Catena-DGG: fixed some issues regarding indexing and input order for the hash functions