Matrix calculator that performs row operations on given matrices