Final Update to include key_found variable to terminate all threads one the key has been found