implementing parFoldMap