Similar Items: Dynamic Dependency Pairs for Algebraic Functional Systems