Brain tumor segmentation and classification using KNN algorithm