companion_matrix function

Create a companion matrix from a vector