Created originally on Bitbucket by palecsandru (Alecsandru Patrascu)
Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.
After some analysis of issue #1414 (closed), I've created a small modification that brings a speedup to the reduce() function, when used with min() or max().
The speedup is between 10-15%, depending on list size and if it is sorted or not.