Added compiler flags for stricter coding

* Added -Wall -pedantic
* Switched from variable length array to vector<>