Preserving Scalar attributes
For d scalar attributes, we could have added d dimension to Edist.
For efficiency purpose, we separate it as a different term
First solve for the vertex positions. Then using the same bi to find vertex attributes minimizing Escalar by linear least square