add fast pairwise correlate & tests