Add phrase query implementation & unit tests