1) Add c++11 support
2) Test valarray