Cleaned up triangle counting code, now it is optimal.