new class for retrieving sublevels created. Fix for distances and typicality calculation