wrote function for the inverse matrix
corrected typos
Merge branch 'master' of https://github.com/latorrefabian/ProgrammingAssignment2