Fixed bug 2105. The rank of a matrix is now better determined when
computing the Link matrix.
Added test case for Bug 2106.