auto batch commit
auto batch commit
auto batch commit
made triangle counting variable names more intuitive