Merged s0, s1, s2
Flattened hessian matrix h