Implements main algorithm

Calculate CIDR, Mask, Available hosts, first and end IP adress etc..