This is my version of the algorithm made by Filipe Deschamps on a youtube video
Here are the video: https://www.youtube.com/watch?v=fxm8cadCqbs OBS: The video is in portuguese because i live in brazil and watch videos in my primary language
The branch called originalAlgorithm is the version that youtuber made in his video, and the other branches are my modified versions