First take on a pad() function.

See #83.