quantize function

Stratified randomization of community matrix