fixing triangle.c bugs
added line to Makefile