Riffle Dynamics