programming assignment 2 showing caching inverse of matrix