implementation to the Median Filter + test case