Debugged multithreaded search implementation.