Simple median filter.