Simplify dist-squared