Use multiprocessing Pool API for parallel processing