changed "abs1" complex absolute value to std::abs