programming assignment 2

inverse matrix (cache and solve)