Create minSumSquares