Algorithm helps in the restoration of the Atlantic Forest