Composite likelihood inference for a class of latent variable models for two factor clustering