iterative algorithm for traiing url reputation dataset