1. add test in cmf_sgd;
2. add function for multiple trail with different params;
3. minor refactoring;