returns the nth element of the list;does not change the original list