Factored out 'match' and 'printTree' as modules from 'grammarOfGraphics'. Ported 'printTree' to functional style, building a string as it walks the tree.