The Design Of Bayes Consistent Loss Functions For Classification