TrueSkill implementation

TrueSkill code copied from https://github.com/nsp/JSkills