Programming assignment2 answer-Matrix inversion using cache