I try to parallelize calculations and write the results in order to a vector.
I\'m using a std::async. The program works perfectly with a short pause (ref. t
std::async