1. copy before using cmf;
2. use nan to represent missing value in matrix;
3. fix bug in data2matrix