Multiple changes

- Added the mp::sort function.
- Optimization of managers internals.
- Added the manager::rw member function.
- Updated examples.