Correct the class priors computation in the sparse target case

Consider the wieghts of the zero elements and hendle the insertion
of the count of zeros in the bincount manaully