Code to run and plot the results of 4 sample algorithms