Functionified 2.
Made 3 better, modified run.sh to use -O3.