Fast samples-based log normalization library