Change match resolving code from n^3 to n