The inverse problem for the Hill operator, a direct approach