Programming Assignment 2 Calculate and Cache Inverse of a matrix