Fixed max/min to use the proper double param
Merge pull request #2 from liam-middlebrook/patch-maxmin

Fixed max/min to use the proper double param