Implement support for the Match operation

This pull request implements #4