Optimization of C++ Numerical Simulation Algorithms Using Multithreading Methods (Èlektronnye biblioteki)