solved #21 using openmp