Frgual Stream Algorithm