Commit for ProgrammingAssignment2

Modified code to return the matrix of a function from either the cache
or a computation.