some datamining algorithm implementation