update c implementation of CGLDA