allow passing a mp.Pool instance instead of ncpu to optimize_multi