Adding a network

Added some matrix operators and Network class