Updated Boltzmann machine Energy calc to accept biases