move vector extra function in helper

Link: https://github.com/GeneAssembly/biosal/issues/208
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>