*Refactored:
	-Added modulo function as helper
	-step: Avoided use of BigInt creation (that slowed down about 2.5 sec)
by using modulo - helper - function