edit assignment to run: calculate Inverse Matrix and store in cache