Implemented purely stochastic pixel assignment code.
Added option for non-stochastic pixel assignment.