optimized min sampling
readme