A collection of JavaScript statistical functions for arrays