Optimizing OpenMP and displaying max OpenMP threads