Rewriting of proposal algorithm, which runs pretty fast now.
Merge pull request #5 from Horrowind/master

Rewriting of proposal algorithm, which runs pretty fast now.