Email Record: An algorithm for automatic segmentation and classification of magnetic resonance brain images