Implemented MultiMatchQuery.
Some refactoring.