Updated makeCacheMatrix and cacheSolve as described by Programming Assignment 2.