unified rbm cd variants to common update algorythm