added MX solve(const MX&, const MX&) tool