ex4-omp working well. casting of i^2 added, long int removed)