Converted to promise pattern / async calculations

Updated example to use promise pattern, classifier to use promise pattern for predicting, scoring, and training. Updated KNN algorithm to use promise pattern when predicting and async.sortBy as a replacement for lodash loops for distance calculations.