added -O3 optimization key to CMakeLists.txt