Merge pull request #3 from bitmagier/master

added APredicate with 2 and 3 parameter