add n base numbers