Wrote input file parser, distances get broadcast.

Also precalculated inverted distances and broadcast those as well. Input
file parser is dumb and expects a specific format (skip the first 6
lines and read space-delimited id/x/y).