Bug Fix for big numbers, > 2^16

maxNum and minNum were only 'int', instead of 'long'