Buzen's algorithm
 
x
OK