Code to compute the mean, median, and mode