Brain Tissue Segmentation in MR Images with FGM