How do you solve the quadratic x^2-2x+1=0 using any method?