AspectModel algorithm