Fix deprecation warnings for min and max
Merge pull request #3 from johnmyleswhite/patch-1

Fix deprecation warnings for min and max