added parallel_hash to support tuples of ndarrays