algo4: greedy: Text justification