Fixed the warnings generated

Switched from using an int to size_t which .size() returns upon a vector