Squashed 'lib/TH/' changes from 7a903fa..036463c

036463c prepare TH to git subtree: merge recent work
3aa56a3 merged THGenerator with multinomial
8269bf1 multinomial c89 compliant
6ec7990 Merge remote-tracking branch 'upstream/master'
8d9c451 removed debugging code. added unit tests
6aab01d multinomial without replacement, inline code, uses less memory
b5744ef multinomial with replacement

git-subtree-dir: lib/TH
git-subtree-split: 036463c1e8f62778e62efd21c62715a3ec90914e
Merge commit '10861b1c88fa231a1a72d8ea4e382086dc4aa374'
Merge branch 'master' of github.com:torch/torch7