Reverted reduce() algorithm

Changed back to March 1, 2014 Night.