Removed all traces of BOOST_FOREACH
Removed the use of the tr1 namespace and all auto_ptr classes have been switched to unique_ptr classes