ADDED: Pseudo code for the Matrix operation.