New version is working in principle, but seems to have a memory leak in MATLAB (command line version with robustSVM data is fine)