Multithreading read and  search -cs-542