Improve min/max recursion
Merge pull request #1461 from monarchdodra/issue10039

Fix Issue 10039 - std.algorithm enhancements: min, max, clamp