some simple functions on lists and list of lists.