implement more efficient wsample
add type restrictions
switch between algorithms, shuffle by default
Merge branch 'master' into wsample
fix wsample usage
Merge pull request #166 from one-more-minute/wsample

More efficient wsample