Nov12

Creating pull request for code review. See comments in diff.
|| newSamples.hasNext() is redundant, you're actually supposed to check for this in begin(). See the CM.