Sqrt method prepared for parallel (mpi) version