Reformatted paths array into a linked list

But it got slower, probably because it starts from the end