em_alg: Add segments at means