Implementation of the TrueSkill algorithm in R