Coursera programming assignment 2 for
cached matrix inverse calculation.