G-Elo: generalization of the Elo algorithm by modeling the discretized margin of victory