use arrays instead of vectors for vel and pos data