An Automated MRI Segmentation for Brains with Tumors and MS Lesions