Simple matching engine

Task description is in task.md, EN.

Run sbt run to create/update result.txt, it's also tracked in repo.

Run tests with sbt test.