Added an interp function to Network