added rowwise and colwise sum methods in linalg
Merge pull request #2235 from lambday/feature/linalg

added rowwise and colwise sum methods in linalg