Add some configration files
Implement map_matrix for DMatrix
Refactoring to use local variable