move fold from functoolz.core to sandbox.parallel