adding array list of primitive doubles