add triangles.py

genetic algorithm convert image to triangles