refactor 'triMath' to 'polTri'
some cleanup, adding minified polTri