fixed a small mistake in linalg's elementwise square unit test
added some basic methods to linalg
added some special purpose functions for neuralnets to linalg
Merge pull request #2398 from khalednasr/feature/linalg

added some basic methods to linalg