Napoleon, Fermat and some problems about triangles