now working with multiple threads (using multiprocessing library to support multi core computation)