word ladder 2: print shortest paths