Added KnowledgeLab's KL(t,co(t,n)) function.