fleshed out functionality of sampling hidden states given visible neurons' states, and vice versa for RestrictedBoltzmannMachine.java