riverdistanceseq function

River Distance Between Sequential Observations