Implementation of rank Markov classes