replace min and max with minimum and maximum 

This time should be fine
Merge pull request #42 from panlanfeng/patch-1

replace min and max with minimum and maximum