Support an arbitrary number of dividers

Resolves #4 

/cc @robrix