Patch median filter

Median Filter added. GenerateCLP used, macro SEMMacro.
Use the name of the variable you declared in your XML file for the input file: input