Code to obtain the results in the paper.