Updated the pagerank sample

o multiply() was renamed to dot()
o Matrices with ones can be created without numpy
Replaced Matrix.dimension() with Matrix.shape property