coffeescript sketch of determining probabilities a team will win a single-elimination tournament