Java implementation of the Microsoft's AdPredictor algorithm