The PANDA Framework for Comparing 1 Arbitrarily Complex Patterns