Predicting number of threads using balanced datasets for openMP regions