min{(p q + p+q+1/3)^2+(p q +1/3)^2 + (p q - p - q + 1/3)^2}