Add square, cube, and nth root functions.