Changed SampleByKey to not use Tuple's iterator

For Pig10 or lower compatibility.