Some Extensions of the Polya Urn Scheme with Bayesan Applications