Length Of 2d Matrix