rename couting sort  , this class view as pure functional class