Enable constructing Matrix and Vector from memory buffers