add nth and friends
Merge pull request #2 from mrocklin/nth

add nth and friends