modified bbfdetect to utilize OpenMP