Now third parameter of function gatherMatrices() is pointer to pointer because third parameter is passed by reference.
Now third parameter of function decreaseMatrices() is pointer to pointer because third parameter is passed by reference.
Now third parameter of function multiplyMatrixWithScalar() is pointer to pointer because third parameter is passed by reference.