Programs on linkedlists