ProgrammingAssignment2

cache the inverse of a matrix in order to avoid calculating it
unnecessarily