Added triangle checking function
Merge pull request #38 from Gerb11/master

Added triangle checking function