Add API of building vector