shitty implementation of yules k characteristic