Changed to using scipy.sparse.dok_matrix for matrix P. Operations are slower (power iteration on wiki-Vote matrix went from 1.6 to 5.9 seconds on my machine) but it's much more memory efficient, and I can now test the algorithms on much larger matrixes (like web-Stanford)