Calculating CyclomaticComplexity