removed cstdlib to avoid overloaded abs