how to check linear independence of matrices