Updated main.cpp to use "auto" C++11 feature.