fix & up

fix : Classifier & SliceWrapper to work with sparse matrix
up : histogram computation