Replace "degSquared" everywhere in code with "deg^dimension"