Add triangle module and tests.