Half-sync Half-async - A distributed calculation of factorial.