Add jobs pool

Add a JobsPool object which permit to push all the jobs but wait unitl all of them are finished.