How do you solve #x^2-2x+1=0# by completing the square?