Using sequence for parFilter
Generalizing sum to a fold