Distributed multithreaded version

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>