Added matrix inverse.