Implemented makeCacheMatrix and cacheSolve functions for the special matrix type.