Find the smallest possible length