Complete Phase 3

Finish coding phase 3.
Add execution time measurement.