Solving two-point seismic-ray tracing problems in a heterogeneous medium | Synapse