Coursera Programming Assignement 2 (cache inverse matrix)