added convert_to_matrix method in SGVector