Triangle count

Implements streaming triangle counting algorithm by Madhav Jha et al.
Computes also transitivity.