Adding iterative functions for multiplication and exponentiation.