added square coefficient of matrix method in linalg
Merge pull request #2234 from lambday/feature/linalg

added square coefficient of matrix method in linalg