Implemented the makeCacheMatrix and cacheSolve functions for the assignment.