A stabilization algorithm for a class of uncertain linear systems