Added algorithm of Woo with some bug