move vector functions here from arcueid.c
move vector functions to vector.c
add vector.c