3562: Replace Method for MutableMatrix

Addressing issue 3562, A Function F in entries of a MutableMatrix can now be Replaced by another Function G. Please let me know of any changes to be done.