Data compression, look ahead segment calculation, max segment lenght