sum an array