Fixes method AbstractMatrix.rank()

See issue #94.