Remove the min/max functions in CommonFuncs.

The algorithm header has the same functions.
Merge pull request #334 from lioncash/use-std-minmax

Remove the min/max functions in CommonFuncs.