Triangle count

This pull request adds triangle counting as well as some improvements in the way graphs are loaded.