Javascript object that iherits from the standard javascript array object and adds some statistical functions