median Filter for testing