fixed "std::" namespace problems, added abs() inline function.