(Issue #14) Multithread

Pull request for merge.