New techniques for efficiently k-NN algorithm for brain tumor detection