Enabled support for C++x11.
Removed confusing typedefs and make use of auto keyword for iterators.