* fixed inverse functions in matrix