C++: correct sign for completing the square.