processSubscript and converting combineDists and meanPairwiseDist to the longDist framework