added basic implementation of multivariate polya