added multithreading in Beagle
Merge pull request #121 from DashaZhernakova/master

added multithreading in Beagle