Wrote out first version of getWidth

Not sure the pseudo is right, it just sort of counts the number of
nodes, rather than finding paths.