Fixes #1: Plain matrices (not created via makeCacheMatrix) are now handled correctly by cacheSolve().