implemented multithreading
Merge pull request #11 from cmhbenjamin/master

implemented multithreading