Add arg-sample code

@mjhubisz

This PR addresses issue #9 by merging the code needed for `arg-sample` into master.


You should probably return a reference to avoid a copy here. i.e.
```c++
vector<scoreT> &get_scores() {
```