add solutions using multiprocessing pool and pipe.