Computer renormalization-group technique applied to the Hubbard model