Implementation for cached inverse matrix funtions
Merge https://github.com/jvallver76/ProgrammingAssignment2