Vectorised max. Still need to do the same for min.
Make sure utilOnes is also in scope for computeAlgebraics.
Tracker item 3731.
Replicate fix for max into template for min.

Tracker item 3731
Removed unused variable.

Based on comments from code review.
Tracker item 3731.
Merge pull request #2 from codecurve/VectoriseMinMax

Vectorise min max