compute majority label of a sequence

* in service of kNN