Enhanced chapter four array and list methods based on hints.
Rewrote nth() as a recursive function