bal_accuracy function

Balanced accuracy