Add one to positivie integer stored in an array