Added adjustable sample size

New constructor allows you to specify a sample size. New method lets you
change it at runtime.