Code for SAR algorithm and tests described in our ICML 2014 paper