updated simplesegment and small change to kmeans/expmax