solution to the kddcup2013 track1 problem.