Method to add one to list of integers.