proof-of-concept implementation of distributed pattern matching