optimize Ln and ExtensiveTest, and optimize square root case for Pow