Trending algo - knn trend detection

Added the sources for the key nearest neighbors trend detection algorithm. Also modified build.sbt file to include it in build.