Added a switch to choose between Halton and stratified sampling