updated the BatchAnalyst code to use cyclic barrier and more efficient threading for the project needs