A linear algorithm for the hamiltonian completion number of the line graph of a tree