Create KNNdecoder

Sample code for using k-nearest neighbor classifier.