Function to train Boltzmann machine exactly
Removed biases
Revert "Removed biases"

This reverts commit 6a5f9c9fe5d84042746cc688dcd237ad99431ff6.