To use this code, first compile

$ make

then launch the script to test the solutions

$ chmod +x tst_solutions.sh
$ ./tst_solutions.sh

finally, output the figures in R with the script output_figures.R

$ R
[in R console] setwd('your-working-directory')
[in R console] source('output_figures.R')