Update Travis CI configuration
Rewrote tri-tri intersection test with an optimised version, expanded macros