Added more vector and matrix functions