add distance calculation function: dist, blosum