Compute pairwise GISTs