https://1library.org/document/y626kj4z-algoritmos-alexandre-diehl-departamento-fisica-ufpel.html