Pattern matching algorithms | Synapse