EM---Image-Segmentation Implementation of Expectation - Maximization algortithm in order to segment images