local version of Triangle enumeration (working)
added some comments to triangle example
Moved to custom records