Better Cython for `seismic.ttime2d`

Updated the Cython code of the straight ray travel-time calculation.
It now uses some memoryviews instead of lists and  inlined cdef
functions instead of lambdas. The result: > 300x speed up!
And that is when comparing the old parallel code with a serial run
of the new code.

In short, Cython rocks.