Adding a reduce() method to Collections.