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