add a new algorthim framework from mmLMNN