populate triangle from file