Patch median filter

Median Filter added. GenerateCLP used, macro SEMMacro.