Added lisp-style nth function.