Update proto2.cpp

Implemented execution timing.  More reliable verification for results, fixed other misc. bugs.