Right scaled factor algorithm