ref: d78c5d125ea7378380ef01b1448c8adf9f022d32 gio-example/galaxy d---------
all: update to use StateOp instead of StackOp

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
galaxy: adapt donated code to fit gio visualization

This commit adapts the donated galaxy simulation code to work
with the front-end visualization originally posted here:


With this change, the entire galaxy example codebase in now under the
same licenses, and visualization code has been better documented.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
galaxy: add simulation engine for galaxy example

This is essentially the code for the Gonum Barnes-Hut example code and
is donated to the Gio project.

Signed-off-by: Dan Kortschak <dan@kortschak.io>