CSC564 A3 code done. Need to do timings on lab machines.