added some basic methods to linalg