Use <cstdlib> for std::abs() on integer datatypes.