Programming assignement: cache inverse matrix