A modified candecomp algorithm for fitting the latent class model: Implementation and evaluation