add weighted reservoir sampling (AE-S)

address feedback from @spencerkimball

final commit before merge
Merge pull request #44 from tobstar87/split

add weighted reservoir sampling (AE-S)