Entropy-Driven Phase Transition in a Polydisperse Hard-Rods Lattice System