Added NNsearch method to make NN configurable in livePredictor