added line array and triangle matrix