Unified stabilization approach to principal and minor components extraction algorithms