New algorithm for variable-rate linear broadcast network coding