Replace abs() with std::abs()