Changed vector size and capacity from size_t to int