number calculations to find the mean, median & mode from an array through node command line