Using foldLeft to sum, 50% better performance.