Replace minmax with extrema
Merge pull request #35 from JuliaStats/minmaxcleanup

Replace minmax with extrema