Added funs to calculate and cache inverse matrixes

Adapted from Roger Peng’s Coursera examples
Added comments
Clarified comment
Updated matrix example in comments