new atan implementation for very high precision