Add network data structure and residual networks