A genetic distance measure for aligned sequences