Replace math.h by cmath in includes.
Remove some more "using namespace std;"
Remove "using namespace std;" everywhere. Tests are failing.
Replace abs by std::abs.