3562: Replace Method for MutableMatrix
Code quality improved
Support for map argument added
Test added for map. Code Now compliant with PEP8
Merge pull request #2024 from thilinarmtb/3562_matrix_replace

3562: Replace Method for MutableMatrix