added russian peasant algorithm