add predictor

an elementary predictor for specific length of pattern is added, then an
aggregate filter is defined on a range of pattern lengths