simple vector class