Process consecutive values. Returns the central value of three consecutive values.