Added rows of triangle for problem 18.