This program does operations on matrices with helper functions.