add topk source code