I modified the stub code to invert a matrix instead of calculating a mean

Code complete for the HW assignment.
Revert "I modified the stub code to invert a matrix instead of calculating a mean"

This reverts commit ee9ad62bc4b178bf28b3a2aacd0311f29586406f.
I modified the stub code to invert a matrix instead of calculating a mean

code complete