Added speed control

Three speeds :
- slow : 2 iterations per second, Thread sleeps 500ms
- medium : 5 iterations per second, Thread sleeps 200ms
- fast : as much as possible iterations per second, Thread doesn't sleep