I thought it would be a good idea to create a class that specifically returns 2 element arrays of doubles, i.e. sizes, since d3 expects them for size parameters. There are also a few functions that return 2 element arrays for sizes (https://github.com/mbostock/d3/wiki/Tree-Layout#wiki-size). In short, I thought that 2 element arrays appeared often enough to warrant its own object.