'allele-multif-cosine' speed-up