Added the files of k nearest neighbors trend detection.
It's not working yet in this environment. It's only good for consulting.