Fixed message queue
added tests for message queue
Added ping-pong example
first working version of pattern matching