Hopefully saved some memory by avoiding a conversation from List to Vector.

The conversion is unnecessary because findPaths uses forEach and does
not do any random-accessing.