implementing add_triangle and fixing iterators