Corrected abs() calls

Referenced std::abs