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