Update nthRoot Methods
Updated Main.cpp