Update main.cpp

Added Alg4 and Alg5. Stopped generating random data each time, as this is costly. The code to do so is still in there, just commented out.