Guy, you have the right algorithm, but it's very slow!

 

v20240901