Exact algorithm for computing transition rates, commitor probabilities, and mean first passage times in a transition network