changed standard to c++11
compiles with tests passing!