Introduce some C++11 features
auto type and for-each loop
Replace `NULL` with `nullptr`
Fix the right angle bracket
Class with `begin()` / `end()` can also use for-each loop