A Support Detection and Root Finding Approach for Learning High-dimensional Generalized Linear Models