Isolate iteration
New maybe_parallel_foreach_i functions
Use the maybe_parallel functions
Clean
Link with pthread
Continue support for parallel minibatch