Add optimization.cpp and timer class

1. #set ( CMAKE_VERBOSE_MAKEFILE ON ) or make VERBOSE=1 can see a noisy
output on Cgywin, including gcc compile options.
2. implemente timer for windows. Not test on Unix. this timer also using
windows.h on Cygwin.