The following people helped with code-snippets, ideas, 
discussions, testing and improvements:

Henk
Adam Dershowitz
Stuart Prescott
