Added functions and relevant comments

Added a function to cache a matrix inversion in a new environment and a
function to calculate a matrix inverse