move all vector/matrix instantiation to constructor