fixed bug in stratified sampling, stratified sampling now works
adding weight attenuated particles