Similar Items: Exploiting locality in high-dimensional Factorial hidden Markov models