Patch median filter

Median Filter added. GenerateCLP used, macro SEMMacro.
This file has already been committed in the previous Pull request. Could you remove it from this one?