distans matrix fix/implemented a dumb java client