Added template sort_range function and tested in std::list