A Markov model for sedimentation