Implement free and collect_garbage for IP_Network