New addSampleMethod in KNNClass handler