Improved the speed of ModNumber operations.