Fix error: solve() <-- inverse()

Inverse of matrix function is solve(A) not inverse(A).