Commit of completed code for ProgrammingAssigment2 (cached matrix inversion)