implement fillTriangle