Unsupervised image segmentation using a simple MRF model with a new implementation scheme