Added hPESTermination class to enable learning.
- learning now works for the basic example in learning_test.py
- learning has not yet been tested for network arrays