implements topKBucketing algorithm; change crashPointBucketing to call topKBucketing with k = 1