Replicated Softmax Machine for semantic hashing