Cache Matrix code to find inverse of Matrix