add simple interrupt handler class for optimzation process.
remove unused #include <set>.
Merge branch 'interrupt' of https://github.com/Ruun/OpenANN into Ruun-interrupt
Refactor and test on MNIST.
Fix bug.