Vector written in C