updated documentation of the inversions module. Added reservoir sampling algorithm.