Approximate vs exact algorithms to solve the maximum line length problem