Radix sort algorithm to sort IP address