Added alignement and padding to the distance matrix