Moving assignment iterator to my BN project, since it is always used with BNs, and this way, the BN project can stay self-contained.
Renamed logFactorial -> lnFactorial