Rank

In addition to rank function, I also added the ```getSingularValues``` function to ```SVDResult```.