add some vector/matrix operation functions