updated Gmeans