Fix bug, when the last sample in lines_ are not select, we should set lines_id_=0. Improve algorithm, when a sample is not select in one epoch, we halve the probability of not selecting it in the next epoch.