matricize_byname function

Matricize a vector