add files for triangle test and triangle code