Make Network.java an interface

The neural network is now an interface, meaning it can have different ways to calculate propagation.