add exponents with same base - Search