For cycle that replaces Math.Pow();