mod - implementation of remainder, use int array with getters.