brute force calculation of stationary distribution