pub type ParallelFor = fn(usize, &(dyn Fn(usize) + Sync));
runs f(i) for every i in 0..n, possibly on several threads (img_core::ParallelFor)