Implementation the TrueSkill algorithm in R