finding nth root of complex numbers