Implemented SingleWeightFactor. A weighted factor with the same weight for all the variables.
Merge pull request #8 from tonipenya/master

Implemented SingleWeightFactor.