add triangle solution