New version of Median Filter