Solutions for programming assignment 2

Both functions tested with two matrices. Comments in the code show how
to call the various functions.