AngularJS app to calculate mean, median, and mode