Test program for backpropagation