Add multiplicative order function