C-interface: Creating and modifying vectors