Dodane CNT meritve, abstract algorithm factory in filter (bugs 6, 22, 11, 21)