Calculate mean, mode and median (#98)