Text this: Two Algorithms for the Sum of Diameters Problem