Polya-Eggenberger urn

Draft implementation, not tested yet.