Working version of the utlity function now works for any number of classes and will return an array of best performing functions. Next add an ability to put in one list