Get the min call to compile

The issue is that std::min expects two objects of the same type,
and int and unsigned int are different types.
Merge pull request #13 from RobertLuptonTheGood/master

Get the min call to compile