Add arg-sample code

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

Could you add a comment about what this method does?  It seems to be called when changing chromosomes during iteration.