Use LinkedList for constantPaths