Compile match

closes #41