improved efficiency of floated element layout algorithm