Small bug fixes

The implementations of reduce were fixed. They used to iterate over the same element in the list, now it correctly iterates over every element in the list. concatMap was made into an instance method. Changed the return type of exercise19 to be consistent with the other exercises.