to add n number of integers