Adaptive Stabilization of Linear and Nonlinear Systems