Matlab code for the accelerated mirror-prox (AMP) algorithm