Refactored and added example/rosenbrock.cpp
Fixed floating-point exception in Release and removed threadCount (Duplication)