Solution to programming assignment 2

Methods to create a matrix object which stores its inverse and to
return the cached value of the inverse.