Add function for conversion of IP address to integer