Matrix with cached inverse

Created the cached inverse Matrix constructor and inverse methods