first implementation of McCabe metric