fix: many, many, maaaany fixes to the algorith
fix: many, many, maaaany fixes to the algorith

giovannicuriel/tinytools,giovannicuriel/tinytools,giovannicuriel/tinytools,giovannicuriel/tinytools,giovannicuriel/tinytools