An adaptive hp-DG-FE Method for Elliptic Problems. Convergence and Optimality in the 1D Case