Adding solve() helper for MX