Added a library where algorithms of calculating some useful functions will be placed
apro_gen optimization for better algorithm working.

apro_gen_runner class added for doing the job in separate thread.
Changes into demo application made due to library changes.