* Ely: first implementation of multithrading based on condition
variables completed. 

* It seems to work. TODO perform more tests and then merge into master
branch.