Patch median filter

Median Filter added. GenerateCLP used, macro SEMMacro.
I would set the default value to 1, but this is really a detail.