Hamiltonian cycles in certain graphs and out-arc pancyclic vertices in tournaments