changed pathgen to use list in stead of vector for tracking incomplete paths to reduce number of memory allocations