A Model-Agnostic Algorithm for Bayes Error Determination in Binary Classification