std::abs is defined in the header cmath