A chain of mass m and length l lies on a horizontal table. The chain is allowed to slide down gently from the side of the table. Find the speed of the chain at the instant when last link of the chain slides from the table. Neglect friction everywhere.