add compound_filter.m file