Summing up a list and finding if an element is in a list using left folds.