MCP solver in MATLAB