Adds c++11 and pedantic to Makefile

-std=c++11 tells the compiler to use the c++11 standard
-pedantic makes sure the standard is followed perfectly
Adds test with range-based for
Indentation