modify the main function to utilize the multi-core machines, saying that using multiprocessing module to speed up the processing time