completed the assignment, creating matrix inverse cache functions