Solution problem 14
Added match library and some tests