filter a block. file will contain implementations for all filter types. linear, rankorder, majority, binary, pattern,stdv