a quotient filter written in C