Added undirected triangle counting.