A dynamic programming approach to first arrival traveltime computation in media with arbitrarily distributed velocities | Synapse