Implement the initial version of basic_filter_with_degree(), need to
fixbug, test and calibrate