more work on cross entropy method in RBM, still WIP