Completed moving mean, median, mode functions into a service