Adding a simple routine to the list class to check
if the list contains an element.