Simplify QuadraticForm by having only one array.