Computation of streamline distances and comparison of speed with different implementations.