Update linkedmatrix.py

testcase requires the dimensions