code for the paper Parallel and distributed sparse optimization