Artificial ants for magnetic resonance image segmentation