A very simple ip network calculator