done with radix sort and cleaned up useless code