Add all of the possible combinations of an array of numbers. The array is flattened before calculations are computed.
Paul Trott
MIT