Rewrite of median filter.