Added NOR test

Added a runNORTest() function to test the ability of the network to
learn a NOR circuits functionality