Quantum Pattern Search with Closed Match