correction of triad census algorithm