I’ve read some of this article, it doesn’t propose any algorithms for my case, I’m super positive about these boundaries.

If there is an offline algorithm that is optimized for my case it could help me around.