added TRISH-inspired multireduce with buckets in shmem for each thread