Implemented 'makeCacheMatrix' and 'cacheSolve' methods.