Similar Items: Algorithms for Markov Binomial Chains