Declared and implemented subtractMatrix operation.