Ran code for topk doubles and triples and for binarized PAM250