very fast sample-based log normalization library