First take on a pad() function.

See #84.