switch to using sprintf for segments (100x speedup)

* brew is nice, but overkill for the segments in particular
* slight change in precision of coords (6sf with %g spec)