Does this need to return a mutable collection? I imagine that the KmerPath class could be made to extend Ordered, and then this could be stored in an immutable, sorted collection.