Implemented required functions: makeCacheMatrix and cacheSolve