Make initGravity() to private, call from constructor.

Also modify interface of solveGravity() to be minimal,
construcing columns for segregations solver at construction time.