doc

-added doxygen documentation on sort_impl intern types