Raymond's algorithm
 
x
OK