Connected components and largest no using radix sort