Nearest Neighbors randomization

added sample method for reshuffling data to take a random sample