Fully implemented math function to collection

Includes sum, count, value, and slice on arrays too