writing preprocessing_median_filter