omp added boolgrid2d improved