Implemented Matrix-functions