GCI-27 Research: Improve the Modulus search algorithm

completed by: Parker Erway

mentors: elliottwilliams

See description here - http://issues.openmrs.org/browse/GCI-27