Put the general matrix/vector functions in seperate file