A function designed to find the nth root of any number